package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.AppVersion;

import java.util.List;

/**
 * 
 * APP版本设置 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-10-23 11:02
 */
public interface AppVersionMapper extends BaseMapper<AppVersion> {
    /**
     * 删除APP版本设置
     * @param  appVersion
     * @return    
     */
    int deleteAppVersion(AppVersion appVersion)throws Exception;
    /**
     * 批量APP版本设置
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchAppVersion(String[] ids)throws Exception;
    /**
     * 查询APP版本设置列表
     * @param appVersion APP版本设置对象
     * @return      
     */
    List<AppVersion> selectListAppVersion(AppVersion appVersion)throws Exception;
    /**
     * 分页查询APP版本设置列表
     * @param page  分页对象
     * @param appVersion 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<AppVersion> selectListAppVersion(Page page, AppVersion appVersion)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param appVersion 系统操作对象
     * @return     
     */
    List<AppVersion> selectListAppVersionForUpdate(AppVersion appVersion)throws Exception;
    /**
     * 通过主键ID查询APP版本设置对象
     * @param id 主键id
     * @return    
     */
    AppVersion findAppVersionById(String id)throws Exception;

    /**
     * 插入APP版本设置
     * @param appVersion
     * @return   
     */
    int insertAppVersion(AppVersion appVersion) throws Exception ;
    /**
     * 更新APP版本设置
     * @param appVersion
     * @return     
     */
    int updateAppVersion(AppVersion appVersion) throws Exception ;


}
